package com.majsubtense.main.gameEntities;

import com.majsubtense.core.components.Transform;
import com.majsubtense.core.Entity;

public class Racer extends Entity {
    private float speed;
    private boolean isWin = false;

    public Racer(String name, float speed) {
        super.name = name;
        this.speed = speed;

        Transform transform = new Transform(
                new float[]{0.0f, 0.0f, 0.0f},
                new float[]{0.0f, 0.0f, 0.0f},
                new float[]{0.0f, 0.0f, 0.0f}
        );
        addComponent(this, new Transform(transform));
    }

    public boolean isWin() {
        return isWin;
    }

    public void setWin(boolean win) {
        isWin = win;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getSpeed() {
        return speed;
    }

    public void setSpeed(float speed) {
        this.speed = speed;
    }
}
